<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>

<link href="/res/third/bootstrap3/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
 
<script src="/res/common/js/jquery.1.9.1.min.js" type="text/javascript"></script>
<script src="/res/third/artDialog/jquery.artDialog.js" type="text/javascript"></script>
<script src="/res/third/validate/jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript">


    function refresh(){
        location.reload();
    }

    //新增楼层页面
function addfloor(){
	top.addTempTab("/shop/addfloor.do");
}

//修改页面
function updat(id){
	top.addTempTab("/shop/updatefloor.do?id="+id);
}

//删除数据
function deleted(id){
	if(confirm("是否确认删除")){
		$.ajax({
			type:"post",
			dataType:"json",
			url:"/shop/deletefloor.do",
			data:{id:id},
			success:function(aj){
				if(aj.success){
					location.reload();
					alert(aj.msg);
				}
			}
		});
	}
	
}

</script>

</head>
<body>
    <div class="panel panel-info panel-content">
      <div class="panel-heading" style="position: relative;">
			
			<form id="soform" method="post">
				<table>
					<tr>
						<td class="w80" style="padding-top: 5px">
							<label  class="center-block">首页装修</label>
						</td>
						
						<td style="padding-left:960px;font-size: 16px;font-family: inherit;color: inherit;">
							<input type="button" class="btn btn-info"   onclick="addfloor()"  value="添加楼层">
						</td>
					</tr>
				</table>
				</form>		
		</div>
      
      <table class="table table-hover table-bordered table-striped table-condensed">
         <tr>
           <th>所在楼层</th>
           <th>所属类目</th>
           <th>更新时间</th>
           <th>操作</th>

         </tr>
         [#list proShopFloorList as proShopFloor]
         <tr>
            <td align="center">${proShopFloor.floor!}</td>
            <td align="center">${proShopFloor.categoryName!}</td>
            <td align="center">${proShopFloor.updatetime!}</td>
            <td align="center">
            <input type="button" value="修改" onclick="updat('${proShopFloor.id!}')"  class="btn-info">
            <input type="button" value="删除" onclick="deleted('${proShopFloor.id!}')" class="btn-info">
            </td>
         </tr>
         [/#list]
      </table>     
      </div>
</body>
</html>